package com.xbongbong.paas.print.manager.feign;

import com.xbongbong.paas.pojo.dto.WorkOrderV2FixDataDTO;
import com.xbongbong.paas.print.pojo.vo.WorkOrderV2FixDataVO;
import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 处理工单数据feign
 */

@FeignClient(name = "xbb-work-order-web", contextId = "WorkOrderV2FixDataFeignClient")
public interface WorkOrderV2FixDataFeignClient {

    /**
     * @Author: ruansicheng
     * @Description: 处理工单data数据，特殊渲染等，参数有需要可以后面自己加
     * @Date: 下午5:10 2022/11/28
     **/
    @RequestMapping(value = "/pro/v1/workOrderV2/feign/fixData", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<WorkOrderV2FixDataVO> fixData(@RequestBody WorkOrderV2FixDataDTO workOrderV2FixDataDTO);
}
